import { baseRequest } from "@/utils/request";
const request = (url, ...arg) => baseRequest(`/goodCategory/${url}`, ...arg);

export default {
  // 提交表单 edit为true时为编辑，默认为新增
  save(data) {
    return request("save", data);
  },
  delete(data) {
    return request("delete", data);
  },

  switchPublish(data) {
    return request("switchPublish", data);
  },
  deleteCategoryRelGood(data) {
    return request("deleteCategoryRelGood", data);
  },
  saveGoods(data) {
    return request("saveGoods", data);
  },
  queryGoods(data) {
    return request("queryGoods", data);
  },
};
